home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19970626-19970929 / 000200_news@newsmaster….columbia.edu _Tue Aug 19 17:51:23 1997.msg < prev    next >
Internet Message Format  |  2020-01-01  |  4KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id RAA22823
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Tue, 19 Aug 1997 17:51:23 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id RAA28263
  7.     for kermit.misc@watsun; Tue, 19 Aug 1997 17:51:22 -0400 (EDT)
  8. Path: news.columbia.edu!panix!howland.erols.net!news-peer.sprintlink.net!news-pull.sprintlink.net!news-in-east.sprintlink.net!news.sprintlink.net!Sprint!204.97.220.6!earth.superlink.net!not-for-mail
  9. From: TTSG <ttsg@ttsg.com>
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: Re: "shebang" help
  12. Date: Tue, 19 Aug 1997 17:18:08 -0400
  13. Organization: TTSG
  14. Lines: 68
  15. Sender: (PJ_W,>%<GF$ @tucsapt.superlink.net
  16. Message-ID: <33FA0D90.5E4B856@ttsg.com>
  17. References: <33F9CF57.740BF0D6@ttsg.com> <5tckvg$oqd$1@apakabar.cc.columbia.edu>
  18. NNTP-Posting-Host: tucsapt.superlink.net
  19. Mime-Version: 1.0
  20. Content-Type: text/plain; charset=us-ascii
  21. Content-Transfer-Encoding: 7bit
  22. X-Mailer: Mozilla 3.01 (X11; I; Linux 2.0.0 i486)
  23. To: Frank da Cruz <fdc@watsun.cc.columbia.edu>
  24. Xref: news.columbia.edu comp.protocols.kermit.misc:7508
  25.  
  26. Frank da Cruz wrote:
  27. > In article <33F9CF57.740BF0D6@ttsg.com>, TTSG  <ttsg@ttsg.com> wrote:
  28. > : I'm trying to create a script that just dials a telephone number and
  29. > : when its done exits (NO, THIS ISNT A PRANK DIALER! I want to set email
  30. > : up that when I receive a message, it'll just dial my phone to let me
  31. > : know I have email)
  32. > :
  33. > : #!/usr/local/bin/kermit
  34. > :     set modem type hayes-high-speed    ; I have an Accura modem
  35. > :     set port /dev/tty16                ; on tty16 (AIX)
  36. > :     set speed 2400                     ; Arbitrary
  37. > :     set parity even                    ; More Arb
  38. > :     set flow xon/xoff                  ; Ok, so I copied this
  39. > :     set modem flow none                ; from ckepage.ksc
  40. > :     set dial retries 1                 ; Allow 10 redials
  41. > :     dial 19145551212                   ; Call my home phone
  42. > :     end                                      ; Lemme out
  43. > :
  44. > : DIAL Failure: DIAL TIMEOUT interval expired.
  45. > :
  46. > Of course, because there is no modem on the other end to answer your call.
  47.     Right, but it wasn't exiting and it was giving me a big banner and a
  48. few other things..... I happened upon a script that does better :
  49.  
  50. #!/usr/local/bin/kermit
  51.     set quiet on                        ; Be very very quiet
  52.     set dial method tone                ; Lots faster
  53.     set modem type hayes-high-speed     ; Ok, so its 14.4
  54.     set port /dev/tty16                 ; 2nd to last modem
  55.     dial 19145551212                    ; Reach out and touch someone
  56.     exit                                ; Lemme out
  57.  
  58. Ok, so it does what I want.  Now I gotta figure out why sendmail isn't
  59. launching it properly. It runs, but exits quickly.
  60. >
  61.  
  62. > : C-Kermit 6.0.192, 6 Sep 96, for IBM RS/6000 AIX 3.2
  63. > :
  64. > Read about the PDIAL command in manual.
  65. > - Frank
  66.  
  67. Ok, will do, thanks, but now another question.....
  68.  
  69.     I'd like to have the number to dial in a file so I can change it via a
  70. web page.  In shell, I could `cat /tmp/waldo` to bring information into
  71. a command, but alas :
  72.  
  73.     dial `cat /tmp/waldo`
  74.  
  75. doesn't.
  76.  
  77. Will I need to do something like :
  78.  
  79.      open read /tmp/waldo
  80.      read line
  81.      close read
  82.      dial \m(line)
  83.      
  84.  
  85. To get it to do what I want?
  86.  
  87.  
  88. Thanks again (And again)
  89.  
  90. Tuc